Added errors for unexpected status codes