# /authorize endpoint returns 200 with html output

**URL:** <https://community.auth0.com/t/authorize-endpoint-returns-200-with-html-output/8234>\
**Category:** Get Help\
**Tags:** authorize-endpoint\
**Created:** [September 19, 2017, 1:11am UTC](https://community.auth0.com/t/authorize-endpoint-returns-200-with-html-output/8234 "2017-09-19T01:11:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![naina.karnik](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@naina.karnik](https://community.auth0.com/u/naina.karnik)\
**Post date:** [September 19, 2017, 1:11am UTC](https://community.auth0.com/t/authorize-endpoint-returns-200-with-html-output/8234/1 "2017-09-19T01:11:42Z")

</div>

`/authorize` endpoint returns 200 with html output. The API documentation states that it should return 302 status with authorization code.  
The documentation at [OAuth 2.0 Authorization Framework - Auth0 Docs](https://auth0.com/docs/protocols/oauth2), states that `response_mode` parameter as `fragment` & `query` should return the code. However this parameter is not taking any effect. How to get the authorization code without redirecting the request?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/authorize-endpoint-returns-200-with-html-output/8234/2 "2018-03-02T05:56:34Z")

</div>


