Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bcampbell opened this issue Jun 16, 2010 · 0 comments
Open

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

bcampbell opened this issue Jun 16, 2010 · 0 comments

Comments

@bcampbell
Copy link

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant