Return 400 instead of 404 in Help API
[MAILPOET-5755]
This commit is contained in:
committed by
Ján Mikláš
parent
64ccf5b948
commit
5847918409
@@ -62,7 +62,7 @@ class Help extends APIEndpoint {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function handleException($message): \MailPoet\API\JSON\ErrorResponse {
|
private function handleException($message): \MailPoet\API\JSON\ErrorResponse {
|
||||||
return $this->errorResponse([
|
return $this->badRequest([
|
||||||
ApiError::BAD_REQUEST => $message,
|
ApiError::BAD_REQUEST => $message,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user