我正在使用Apache作为代理服务器。当我的Web应用程序向AJAX调用返回500错误代码时,Apache会显示其自己的默认内部错误消息。
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
you@example.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>
有没有办法避免这种情况,使错误响应不会被Apache服务器更改。