Skip to content

Response to custom POST request with invalid JSON body is an HTML error page #2

Description

@cunger

Example request:

curl -X POST -H "Content-Type: application/json" -d "{ 'text': 'Hi' }" https://some-api.200ok.app/some-custom-route

Response:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Bad Request</pre>
</body>
</html>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions