Remove the rethrowing of exception.
Changed the content-type returned by the application to application/json to eliminate issues with Firefox.