Jakob Voß > Plack-Middleware-SuppressResponseCodes-0.1 > Plack::Middleware::SuppressResponseCodes

Download:
Plack-Middleware-SuppressResponseCodes-0.1.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.1   Source   Latest Release: Plack-Middleware-SuppressResponseCodes-0.2

NAME ^

Plack::Middleware::SuppressResponseCodes - Return HTTP Status code 200 for errors on request

VERSION ^

version 0.1

SYNOPSIS ^

    use Plack::Builder;

    builder {
            enable 'SuppressResponseCodes'
            $app
        };

DESCRIPTION ^

Plack::Middleware::SuppressResponseCodes sets the HTTP status code of a response to 200 if the response is an error (status code 4xx or 5xx) and the query parameter suppress_response_codes is present with any value except 0 or false. This behaviour is useful for clients that cannot handle HTTP errors. It has been implemented in popular APIs such as Twitter and Microsoft Live.

AUTHOR ^

Jakob Voß <voss@gbv.de>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by Jakob Voß.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: