Skip to content

Commit 302ef62

Browse files
committed
Change translation error to not acceptable
1 parent 83dad06 commit 302ef62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/handlers/get.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ async function handler (req, res, next) {
128128
res.send(data)
129129
return next()
130130
} catch (err) {
131-
debug('error translating: ' + req.originalUrl + ' ' + contentType + ' -> ' + possibleRDFType + ' -- ' + 500 + ' ' + err.message)
132-
return next(error(500, 'Error translating between RDF formats'))
131+
debug('error translating: ' + req.originalUrl + ' ' + contentType + ' -> ' + possibleRDFType + ' -- ' + 406 + ' ' + err.message)
132+
return next(error(406, 'Cannot serve requested type: ' + requestedType))
133133
}
134134
}
135135

0 commit comments

Comments
 (0)