This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Handler mixin for writing JSON errors


sprockets.mixins.json_error is available on the Python Package Index and can be installed via pip or easy_install:

pip install sprockets.mixins.json_error



This examples demonstrates how to use sprockets.mixins.json_error to format errors as JSON.

from sprockets import mixins.json_error
from tornado import web

class MyRequestHandler(json_error.JsonErrorMixin,

    def get(self, *args, **kwargs):
        raise web.HTTPError(404, log_message='My reason')

The response from the handler will automatically be formatted as:

    "message": "My reason",
    "type": "Not Found"
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
sprockets.mixins.json_error-1.0.0-py2.py3-none-any.whl (7.1 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Nov 20, 2014
sprockets.mixins.json_error-1.0.0.tar.gz (5.1 kB) Copy SHA256 Checksum SHA256 Source Nov 20, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting