Catch BadRequest exception on oauth callback