Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ncou committed Jan 1, 2019
1 parent cf0af20 commit 4fc20c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
HttpExceptions
==============

**All HTTP statuses from [RFC 7231](http://tools.ietf.org/html/rfc7231) implemented as separated exceptions.**
**All HTTP statuses from [RFC 7231](http://tools.ietf.org/html/rfc7231) implemented as separated Exceptions.**

**This library provides also a straightforward implementation of the IETF Problem Details for HTTP APIs [RFC 7807](https://tools.ietf.org/html/rfc7807).**
**These Exceptions support a straightforward implementation of the IETF Problem Details for HTTP APIs [RFC 7807](https://tools.ietf.org/html/rfc7807).**

abstract `HttpException` class and its subclasses provide exceptions corresponding to HTTP
error status codes. The most common are included, but you can create exceptions
Expand Down Expand Up @@ -78,7 +78,7 @@ And `Chiron\Http\Exception\Server` namespace for 5xx http errors.
| [NotExtendedHttpException](src/Server/NotExtendedHttpException.php) | 510 | "Not Extended" |
| [NetworkAuthenticationRequiredHttpException](src/Server/NetworkAuthenticationRequiredHttpException.php) | 511 | "Network Authentication Required" |

[References for Http status code](https://www.iana.org/assignments/http-status-codes/http-status-codes.xml)
*[References for Http status code](https://www.iana.org/assignments/http-status-codes/http-status-codes.xml)*

Basic Usage
-----------
Expand All @@ -89,7 +89,7 @@ Throw an exception.
throw new \Chiron\Http\Exception\Client\BadRequestHttpException();
```

Throw an exception with previous exception and also http headers.
Throw an exception with a custom message.

```php
$e = new \Chiron\Http\Exception\Client\BadRequestHttpException("Invalid syntax !");
Expand Down

0 comments on commit 4fc20c0

Please sign in to comment.