Skip to content

Commit

Permalink
Change translation error to not acceptable
Browse files Browse the repository at this point in the history
  • Loading branch information
csarven committed Jan 30, 2024
1 parent 83dad06 commit 302ef62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/handlers/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ async function handler (req, res, next) {
res.send(data)
return next()
} catch (err) {
debug('error translating: ' + req.originalUrl + ' ' + contentType + ' -> ' + possibleRDFType + ' -- ' + 500 + ' ' + err.message)
return next(error(500, 'Error translating between RDF formats'))
debug('error translating: ' + req.originalUrl + ' ' + contentType + ' -> ' + possibleRDFType + ' -- ' + 406 + ' ' + err.message)
return next(error(406, 'Cannot serve requested type: ' + requestedType))
}
}

Expand Down

0 comments on commit 302ef62

Please sign in to comment.