Workiva/go-rest

500 error for invalid JSON on POST request

Closed this issue · 1 comments

If the user submits invalid JSON on a POST request, it results in a 500 error. 400 is expected.

This is set explicitly in the handleCreate method.

handleUpdateList sets the correct status code for invalid JSON.

Resolved with #44.