handle 509 status code