HTTP status code compliance: non-existent and deleted records should return 4xx codes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
* Evergreen master and every version with TPAC
Problem: make an HTTP request for a record that is deleted; although the HTML includes the red-bordered message "This record has been deleted", the HTTP status code will be "HTTP/1.1 200 OK". Arguably, this should be 410 Gone (per http://
Problem: request a record that does not exist, such as http://
Changed in evergreen: | |
milestone: | none → 2.next |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Created http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ dbs/lp1406025_ tpac_http_ 4xx_codes with a first stab at implementing the 404 / 410 codes in the appropriate circumstances. However, the results are U-G-L-Y for humans; we should enable the TPAC to handle the corresponding problems more elegantly.