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 267b644 commit f04586aCopy full SHA for f04586a
src/controllers/event/fulfillment.js
@@ -115,7 +115,7 @@ function FulfillmentController(context) {
115
// Validate eventType
116
if (!Object.values(FULFILLMENT_EVENT_TYPES).includes(eventType)) {
117
log.error(`Invalid event type: ${eventType}`);
118
- return createResponse('', 400, {
+ return createResponse({ message: 'Bad Request - Invalid event type' }, 400, {
119
'x-error': 'Bad Request - Invalid event type',
120
});
121
}
0 commit comments