Skip to content

Commit e6411fd

Browse files
committed
use proper err code
1 parent cc6e614 commit e6411fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export const makeHandleRequest = () => {
144144
function respondWithBadContent(res, id) {
145145
res.contentType('text/plain; charset=utf-8');
146146
res
147-
.status(400)
147+
.status(415)
148148
.send('Bad request. Invalid content type. Request ID: ' + escape(id));
149149
}
150150

0 commit comments

Comments
 (0)