Send a JSON HTTP 400 response
public respondWithError ( string $msg = '', integer $status = 400 ) : Symfony\Component\HttpFoundation\JsonResponse | ||
$msg | string | The error message (not displayed to the user) |
$status | integer | The HTTP status code |
return | Symfony\Component\HttpFoundation\JsonResponse |