_API_RES_BadRequest

Shorthend function for a "bad request" response

_API_RES_BadRequest($message = "Bad request", $ResponseStatus = $API_STATUS_BAD_REQUEST)

Return Value

None

Remarks

The json will always return with this structure: {"description": "Custom message descrpition"} with the given status code

Related

_API_RES_NotFound, _API_RES_InternalServerError