Ensuring error code is a HTTP status code