json help returns wrong http response code

Bug #1946604 reported by Gold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Confirmed
Low
Unassigned

Bug Description

While working on another bug that had the json/help.php script returning a "not found" message I noticed that this was still returning 200 OK.

If the help document is not found it should be returning a 404 Not Found.

To test:

In a browser, open the inspector/devtools and select the network tab.
Open https://demo.mahara.org/json/help.php?plugintype=core&pluginname=view&page=not-a-real-page
Check the status of the request.

Observed: 200

Expected: 404

Tags: bite-sized
Changed in mahara:
status: New → Confirmed
importance: Undecided → Low
tags: added: bite-sized
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.