fix standard error response

This commit is contained in:
envoyr
2022-02-20 11:45:45 +01:00
parent ddc53e87fa
commit 23ecc40b1a

View File

@@ -30,7 +30,7 @@ class Response
return self::jsonResponse(['data' => $data], $response_code); return self::jsonResponse(['data' => $data], $response_code);
} }
public static function jsonErrorResponse($message = null, int $response_code = 200) public static function jsonErrorResponse($message = null, int $response_code = 400)
{ {
return self::jsonResponse(['message' => $message], $response_code); return self::jsonResponse(['message' => $message], $response_code);
} }