refect modification on moving httpStatus to oauth2