[MGNLGQL-67] Should return 40x status code, not 500 when content is not found Created: 05/Jan/21  Updated: 25/Jan/21  Resolved: 19/Jan/21

Status: Closed
Project: Magnolia GraphQL
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0

Type: Bug Priority: Major
Reporter: Christopher Zimmermann Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 0.75d
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: GraphQL Phase 1
Sprint: HL & LD 20
Story Points: 3

 Description   

Steps to reproduce

  1.  Make a graphQL request to content that does not exist (ie an incorrect path or id)
  2.  

.. Logs, screenshots, gifs...

Expected results

Get a 404 error code and message about missing content

Actual results

Get a 500 error code - which is confusing as developer thinks somerthing is broken.

Workaround

Development notes


Generated at Mon Feb 12 05:52:15 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.