The watcher.api.middleware.parsable_error Module

Middleware to replace the plain text message body of an error response with one formatted so the client can parse it.

Based on pecan.middleware.errordocument

class watcher.api.middleware.parsable_error.ParsableErrorMiddleware(app)[source]

Bases: object

Replace error body with something the client can parse.

Previous topic

The watcher.api.middleware.auth_token Module

Next topic

The watcher.applier.action_plan.base Module

Project Source

This Page