Http Exception and json response

- Add specific http exception
- Force json response header for api request