diff --git a/src/Plugin/ErrorPlugin.php b/src/Plugin/ErrorPlugin.php index 2d1d2f1..a187295 100644 --- a/src/Plugin/ErrorPlugin.php +++ b/src/Plugin/ErrorPlugin.php @@ -17,6 +17,14 @@ * * Status codes 400-499 lead to a ClientErrorException, status 500-599 to a ServerErrorException. * + * Warning + * ======= + * + * Throwing an exception on a valid response violates the PSR-18 specification. + * This plugin is provided as a convenience when writing a small application. + * When providing a client to a third party library, this plugin must not be + * included, or the third party library will have problems with error handling. + * * @author Joel Wurtz */ final class ErrorPlugin implements Plugin