Return 400 instead of 404 in Help API

[MAILPOET-5755]
This commit is contained in:
 Ján Mikláš
2024-06-18 16:22:49 +02:00
committed by Ján Mikláš
parent 64ccf5b948
commit 5847918409

View File

@@ -62,7 +62,7 @@ class Help extends APIEndpoint {
}
private function handleException($message): \MailPoet\API\JSON\ErrorResponse {
return $this->errorResponse([
return $this->badRequest([
ApiError::BAD_REQUEST => $message,
]);
}