API rest errors reponse not in rest format

c.soriano4 years ago

Hello,
When the API responses is 40X

It seems that It doesn't response a json format string, here you can see an example

curl -XGET \
  http://gps.blablbablabla.com/api/devices\?uniqueId\=notExistingId \
  -H 'Authorization: Basic token' \ 
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/json' \

NullPointerException (DeviceResource:77 < ...)%

What I'm doing wrong?

Anton Tananaev4 years ago

Errors don't include JSON.