Make sure the HTTP code is valid