tykus7 years ago Best Answer Level 104ReplyReport SpamThe second parameter to json() should be a valid status code, e.g. 2xx, 4xx etc. It defaults to 200, so pick an appropriate one in the case of an error. If you wanted to have an errors key then: return response()->json(['errors' => $api->errorsArray()], 422); Like Reply