#12341 closed defect (bug) (fixed)
Invalid feed type returns 500 HTTP response
Reported by: | aaroncampbell | Owned by: | westi |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
It looks like passing a bad value to the get variable "feed" gives an HTTP response 500 (see http://ma.tt/?feed=1234). That doesn't sound like the right response. It seems like it should be a 40x response. I read the Status Code Definitions, but I'm not totally sure which one is most appropriate. The attached patch changes it to send a 404.
Attachments (1)
Change History (7)
#2
in reply to:
↑ 1
@
15 years ago
- Milestone changed from Unassigned to 3.0
Replying to beaulebens:
I would agree that it should be either a 404 or a 401 (Bad Request).
I imagine you mean 400 -- 401 is for a failed HTTP auth.
404 seems fine to me if we want to be more generic than 400.
#4
@
15 years ago
- Keywords commit added; dev-feedback removed
- Owner set to westi
- Status changed from new to accepted
404 make sense to me.
What you asked for wasn't found.
Note: See
TracTickets for help on using
tickets.
I would agree that it should be either a 404 or a 401 (Bad Request).