Page MenuHomePhabricator

Return HTTP 500, not HTTP 200, on exception pages
ClosedPublic

Authored by epriestley on Nov 5 2013, 11:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 13, 9:48 PM
Unknown Object (File)
Wed, Dec 4, 10:32 AM
Unknown Object (File)
Wed, Dec 4, 10:32 AM
Unknown Object (File)
Wed, Dec 4, 10:32 AM
Unknown Object (File)
Wed, Dec 4, 10:22 AM
Unknown Object (File)
Thu, Nov 28, 5:20 PM
Unknown Object (File)
Nov 23 2024, 2:13 AM
Unknown Object (File)
Nov 20 2024, 6:24 PM
Subscribers

Details

Summary

Ref T4064. The response code here isn't normally relevant, but we can hit these via git clone http://../, etc., and it's clearly more correct to use HTTP 500.

Test Plan

Added a fake throw new Exception() and verified I got an HTTP 500 response.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Unknown Object (User) added a comment.Nov 5 2013, 11:13 PM

Seems good, but I'll leave @btrahan to verify.