We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 727e525 commit 6831f1dCopy full SHA for 6831f1d
packages/services/service-common/src/sentry.ts
@@ -37,6 +37,15 @@ const plugin: FastifyPluginAsync = async server => {
37
return;
38
}
39
40
+ if (err.code === 'FST_ERR_CTP_INVALID_MEDIA_TYPE') {
41
+ req.log.warn('Invalid media type');
42
+ void reply.status(415).send({
43
+ error: 415,
44
+ message: 'Invalid media type',
45
+ });
46
+ return;
47
+ }
48
+
49
req.log.warn('Replying with 500 Internal Server Error');
50
void reply.status(500).send({
51
error: 500,
0 commit comments