The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Catalyst::Model::REST::Response

VERSION

version 0.22

NAME

Catalyst::Model::REST::Response - Response class for REST

METHODS

code

Returns the http status code of the request

response

Returns the raw HTTP::Tiny response. Use this if you need more information than status and content.

error

Returns the returned reason from HTTP::Tiny where the status is 500 or higher.

data

Returns the deserialized data. Returns an empty hashref if the response was unsuccessful

AUTHOR

Kaare Rasmussen, <kaare at cpan dot com>

BUGS

Please report any bugs or feature requests to bug-catalyst-model-rest at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Catalyst-Model-REST.

COPYRIGHT & LICENSE

Copyright 2010 Kaare Rasmussen, all rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.

AUTHOR

Kaare Rasmussen <kaare at cpan dot net>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Kaare Rasmussen.

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