Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

No 500 status code on errors


Reply

2 Posts   446 Views

Avatar
MarijnKampf

20 December 2011 at 9:44pm Community Member, 164 Posts

I received an error report from one of my users, but they forgot to note on which page. I tried doing a link check with Xenu to identify it, only to discover that if an error occurs on a page no 500 (or other) http status code is returned. It still returns a 200 page status code.

Is this intentionally? I would think the appropriate error code should be returned instead?

Avatar
simon_w

20 December 2011 at 10:26pm Forum Moderator, 474 Posts

SilverStripe is only able to return the error if it's something that it can catch. Things like parse errors and timeouts can't be caught by SilverStripe, so the server responses with any output and the default status code of 200.