Custom http error response in JSON

Server side (PHP):

Client (with datatable):

Result in Chrome dev tool: