When an exception occurs the HTTP status code is set to an appropriate code from the table below and the response from the server contains information about an occurred exception.