added ability to show an error message with a status code greater than 399 in the response