1. Jesper Noehr
  2. django-piston
  3. Issues
Issue #170 new

Ability to return a object graph with a non 200 status code

Erik van Zijst
staff created an issue

Currently you can return an object graph that gets serialized to json (or whatever emitter is active), but it always get the 200 status code.

I want to be able to return an object (so Piston takes care of serializing), but specify a custom status code.

This would make it easier to use Piston rest endpoints from Ajax as you can return errors are json messages.

Comments (1)

  1. Log in to comment