How to remove internal server error phrase from status code 500 pages?











up vote
2
down vote

favorite












When an error 500 is generated by our application we would like to be in full control of the error page content. However IIS is adding a phrase at the top of the page, The page cannot be displayed because an internal server error has occurred.



Initially an IIS error page was being shown above our error page. In IIS Manager under Error Pages I have removed the page for Status Code 500. This removed the default IIS error page content but left the server error message above our error page.




  • I have confirmed that the content isn't being added by the browser

  • I confirmed it is not from our app. If I set the IIS error page settings to Detailed Errors the phrase doesn't appear

  • We do not want Detailed Errors to be enabled for remote traffic just to fix this for error 500.


How can we disable this phrase?



enter image description here










share|improve this question




















  • 2




    To append to the answer you got... helpx.adobe.com/coldfusion/developing-applications/… ... This may help if you want to customize a display for a given type of error, rather than just use IIS as a blanket to say something went wrong.
    – TRose
    Nov 19 at 21:32















up vote
2
down vote

favorite












When an error 500 is generated by our application we would like to be in full control of the error page content. However IIS is adding a phrase at the top of the page, The page cannot be displayed because an internal server error has occurred.



Initially an IIS error page was being shown above our error page. In IIS Manager under Error Pages I have removed the page for Status Code 500. This removed the default IIS error page content but left the server error message above our error page.




  • I have confirmed that the content isn't being added by the browser

  • I confirmed it is not from our app. If I set the IIS error page settings to Detailed Errors the phrase doesn't appear

  • We do not want Detailed Errors to be enabled for remote traffic just to fix this for error 500.


How can we disable this phrase?



enter image description here










share|improve this question




















  • 2




    To append to the answer you got... helpx.adobe.com/coldfusion/developing-applications/… ... This may help if you want to customize a display for a given type of error, rather than just use IIS as a blanket to say something went wrong.
    – TRose
    Nov 19 at 21:32













up vote
2
down vote

favorite









up vote
2
down vote

favorite











When an error 500 is generated by our application we would like to be in full control of the error page content. However IIS is adding a phrase at the top of the page, The page cannot be displayed because an internal server error has occurred.



Initially an IIS error page was being shown above our error page. In IIS Manager under Error Pages I have removed the page for Status Code 500. This removed the default IIS error page content but left the server error message above our error page.




  • I have confirmed that the content isn't being added by the browser

  • I confirmed it is not from our app. If I set the IIS error page settings to Detailed Errors the phrase doesn't appear

  • We do not want Detailed Errors to be enabled for remote traffic just to fix this for error 500.


How can we disable this phrase?



enter image description here










share|improve this question















When an error 500 is generated by our application we would like to be in full control of the error page content. However IIS is adding a phrase at the top of the page, The page cannot be displayed because an internal server error has occurred.



Initially an IIS error page was being shown above our error page. In IIS Manager under Error Pages I have removed the page for Status Code 500. This removed the default IIS error page content but left the server error message above our error page.




  • I have confirmed that the content isn't being added by the browser

  • I confirmed it is not from our app. If I set the IIS error page settings to Detailed Errors the phrase doesn't appear

  • We do not want Detailed Errors to be enabled for remote traffic just to fix this for error 500.


How can we disable this phrase?



enter image description here







iis coldfusion iis-8.5 coldfusion-2016






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 19 at 19:12

























asked Nov 19 at 19:07









Dan Roberts

2,60622738




2,60622738








  • 2




    To append to the answer you got... helpx.adobe.com/coldfusion/developing-applications/… ... This may help if you want to customize a display for a given type of error, rather than just use IIS as a blanket to say something went wrong.
    – TRose
    Nov 19 at 21:32














  • 2




    To append to the answer you got... helpx.adobe.com/coldfusion/developing-applications/… ... This may help if you want to customize a display for a given type of error, rather than just use IIS as a blanket to say something went wrong.
    – TRose
    Nov 19 at 21:32








2




2




To append to the answer you got... helpx.adobe.com/coldfusion/developing-applications/… ... This may help if you want to customize a display for a given type of error, rather than just use IIS as a blanket to say something went wrong.
– TRose
Nov 19 at 21:32




To append to the answer you got... helpx.adobe.com/coldfusion/developing-applications/… ... This may help if you want to customize a display for a given type of error, rather than just use IIS as a blanket to say something went wrong.
– TRose
Nov 19 at 21:32












1 Answer
1






active

oldest

votes

















up vote
6
down vote













The message is appended by IIS. If you don't want IIS to break in on your error handling, switch to the custom error mode in your web.config:



<?xml version="1.0" encoding="UTF-8"?>
<configuration>

<system.webServer>

<!-- bypass IIS error handler -->
<httpErrors errorMode="Custom" existingResponse="PassThrough" />

</system.webServer>

</configuration>


More documentation about httpErrors can be found here.






share|improve this answer





















  • Is there any way to accomplish this in the IIS manager interface?
    – Dan Roberts
    Nov 19 at 19:34












  • At least errorMode can be modified through the GUI: Error Pages -> Edit Feature Settings... (right side) -> Custom
    – Alex
    Nov 19 at 19:37












  • the problem I have with this is that it is trying to pass through all errors and if there is no content from my app, for example in the case of a 404 on an static file, then no content is returned to the browser and the user gets a browser specific error page. I looked to see if there was a way to pass through just 500 error page content but doesn't appear that is supported. Only option I have seen that has the wanted outcome is making the 500.htm error page blank so that when it appears above our error content nothing gets added
    – Dan Roberts
    Nov 20 at 21:57











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53381099%2fhow-to-remove-internal-server-error-phrase-from-status-code-500-pages%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
6
down vote













The message is appended by IIS. If you don't want IIS to break in on your error handling, switch to the custom error mode in your web.config:



<?xml version="1.0" encoding="UTF-8"?>
<configuration>

<system.webServer>

<!-- bypass IIS error handler -->
<httpErrors errorMode="Custom" existingResponse="PassThrough" />

</system.webServer>

</configuration>


More documentation about httpErrors can be found here.






share|improve this answer





















  • Is there any way to accomplish this in the IIS manager interface?
    – Dan Roberts
    Nov 19 at 19:34












  • At least errorMode can be modified through the GUI: Error Pages -> Edit Feature Settings... (right side) -> Custom
    – Alex
    Nov 19 at 19:37












  • the problem I have with this is that it is trying to pass through all errors and if there is no content from my app, for example in the case of a 404 on an static file, then no content is returned to the browser and the user gets a browser specific error page. I looked to see if there was a way to pass through just 500 error page content but doesn't appear that is supported. Only option I have seen that has the wanted outcome is making the 500.htm error page blank so that when it appears above our error content nothing gets added
    – Dan Roberts
    Nov 20 at 21:57















up vote
6
down vote













The message is appended by IIS. If you don't want IIS to break in on your error handling, switch to the custom error mode in your web.config:



<?xml version="1.0" encoding="UTF-8"?>
<configuration>

<system.webServer>

<!-- bypass IIS error handler -->
<httpErrors errorMode="Custom" existingResponse="PassThrough" />

</system.webServer>

</configuration>


More documentation about httpErrors can be found here.






share|improve this answer





















  • Is there any way to accomplish this in the IIS manager interface?
    – Dan Roberts
    Nov 19 at 19:34












  • At least errorMode can be modified through the GUI: Error Pages -> Edit Feature Settings... (right side) -> Custom
    – Alex
    Nov 19 at 19:37












  • the problem I have with this is that it is trying to pass through all errors and if there is no content from my app, for example in the case of a 404 on an static file, then no content is returned to the browser and the user gets a browser specific error page. I looked to see if there was a way to pass through just 500 error page content but doesn't appear that is supported. Only option I have seen that has the wanted outcome is making the 500.htm error page blank so that when it appears above our error content nothing gets added
    – Dan Roberts
    Nov 20 at 21:57













up vote
6
down vote










up vote
6
down vote









The message is appended by IIS. If you don't want IIS to break in on your error handling, switch to the custom error mode in your web.config:



<?xml version="1.0" encoding="UTF-8"?>
<configuration>

<system.webServer>

<!-- bypass IIS error handler -->
<httpErrors errorMode="Custom" existingResponse="PassThrough" />

</system.webServer>

</configuration>


More documentation about httpErrors can be found here.






share|improve this answer












The message is appended by IIS. If you don't want IIS to break in on your error handling, switch to the custom error mode in your web.config:



<?xml version="1.0" encoding="UTF-8"?>
<configuration>

<system.webServer>

<!-- bypass IIS error handler -->
<httpErrors errorMode="Custom" existingResponse="PassThrough" />

</system.webServer>

</configuration>


More documentation about httpErrors can be found here.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 19 at 19:26









Alex

4,6861831




4,6861831












  • Is there any way to accomplish this in the IIS manager interface?
    – Dan Roberts
    Nov 19 at 19:34












  • At least errorMode can be modified through the GUI: Error Pages -> Edit Feature Settings... (right side) -> Custom
    – Alex
    Nov 19 at 19:37












  • the problem I have with this is that it is trying to pass through all errors and if there is no content from my app, for example in the case of a 404 on an static file, then no content is returned to the browser and the user gets a browser specific error page. I looked to see if there was a way to pass through just 500 error page content but doesn't appear that is supported. Only option I have seen that has the wanted outcome is making the 500.htm error page blank so that when it appears above our error content nothing gets added
    – Dan Roberts
    Nov 20 at 21:57


















  • Is there any way to accomplish this in the IIS manager interface?
    – Dan Roberts
    Nov 19 at 19:34












  • At least errorMode can be modified through the GUI: Error Pages -> Edit Feature Settings... (right side) -> Custom
    – Alex
    Nov 19 at 19:37












  • the problem I have with this is that it is trying to pass through all errors and if there is no content from my app, for example in the case of a 404 on an static file, then no content is returned to the browser and the user gets a browser specific error page. I looked to see if there was a way to pass through just 500 error page content but doesn't appear that is supported. Only option I have seen that has the wanted outcome is making the 500.htm error page blank so that when it appears above our error content nothing gets added
    – Dan Roberts
    Nov 20 at 21:57
















Is there any way to accomplish this in the IIS manager interface?
– Dan Roberts
Nov 19 at 19:34






Is there any way to accomplish this in the IIS manager interface?
– Dan Roberts
Nov 19 at 19:34














At least errorMode can be modified through the GUI: Error Pages -> Edit Feature Settings... (right side) -> Custom
– Alex
Nov 19 at 19:37






At least errorMode can be modified through the GUI: Error Pages -> Edit Feature Settings... (right side) -> Custom
– Alex
Nov 19 at 19:37














the problem I have with this is that it is trying to pass through all errors and if there is no content from my app, for example in the case of a 404 on an static file, then no content is returned to the browser and the user gets a browser specific error page. I looked to see if there was a way to pass through just 500 error page content but doesn't appear that is supported. Only option I have seen that has the wanted outcome is making the 500.htm error page blank so that when it appears above our error content nothing gets added
– Dan Roberts
Nov 20 at 21:57




the problem I have with this is that it is trying to pass through all errors and if there is no content from my app, for example in the case of a 404 on an static file, then no content is returned to the browser and the user gets a browser specific error page. I looked to see if there was a way to pass through just 500 error page content but doesn't appear that is supported. Only option I have seen that has the wanted outcome is making the 500.htm error page blank so that when it appears above our error content nothing gets added
– Dan Roberts
Nov 20 at 21:57


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53381099%2fhow-to-remove-internal-server-error-phrase-from-status-code-500-pages%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

To store a contact into the json file from server.js file using a class in NodeJS

Marschland

Redirect URL with Chrome Remote Debugging Android Devices