Skip to content
This repository was archived by the owner on Dec 30, 2025. It is now read-only.
This repository was archived by the owner on Dec 30, 2025. It is now read-only.

/parse should catch errors and return them in a json form #7

@bcampbell

Description

@bcampbell

at the moment, exceptions are returned as an html page, which a json-expecting client will just barf on. It'd be cool if the returned data was always in json and contained a status code, so clients can easily deal with errors in a graceful way.

eg:
http://itchanged.org/parse?url=/wibble-foo-blah.html

currently returns:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>Unhandled Exception</title>
</head><body>
<h1>Unhandled Exception</h1>
<p>An unhandled exception was thrown by the application.</p>
</body></html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions