I am trying to upload some files to the server, but I get an error from the server. The server sends an HTML page to explain the error, the browser receives ajax response that has an error but it does not render it as HTML page, So, how can I render ajax response to show as HTML? Is there any way to show AJAX responses as HTML page?
How can show AJAX response as HTML page?
811 Views Asked by Aymn Alaney At
2
There are 2 best solutions below
2
On
What you see in the Response tab is the response. That means, you got an HTTP 500 status code (Internal Server Error) and that is the response for it.
An internal server error means that there is some misconfiguration on the server-side, i.e. you need to search the problem in your server configuration or the server-side script that gets called. Therefore, the client-side tools can't help you much with this problem.

The chrome can render the AJAX response page as HTML page, So you can get that from developer tools -> the Network button -> XHR Name.