Plack::Middleware::SuppressResponseCodes - Return HTTP Status code 200 for errors on request
Plack::Middleware::SuppressResponseCodes modifies error responses (PSGI response with HTTP status code 4xx or 5xx) if the query parameter suppress_response_codes is present with any value except 0 or false. The status code is set to 200 in this case. This behaviour is useful for clients that cannot handle HTTP errors. It has also been implemented in popular APIs such as Twitter and Microsoft Live.
One should think about embedding the status code in the response body when using this middleware, for instance with Plack::Middleware::JSONP::Headers.
Jakob Voß <firstname.lastname@example.org>
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.
To install Plack::Middleware::SuppressResponseCodes, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.