Handle invalid status codes