Adding support for json error responses.
Adding JsonErrorResponse to simply creating ErrorResponse instances.