JSON: Resolve 500 response from device exception