| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | namespace OpenSearch\Exception; |
| 6: | |
| 7: | /** |
| 8: | * Interface for HTTP error exceptions. |
| 9: | */ |
| 10: | interface HttpExceptionInterface extends OpenSearchExceptionInterface |
| 11: | { |
| 12: | /** |
| 13: | * Returns the status code. |
| 14: | */ |
| 15: | public function getStatusCode(): int; |
| 16: | |
| 17: | /** |
| 18: | * Returns response headers. |
| 19: | */ |
| 20: | public function getHeaders(): array; |
| 21: | } |
| 22: |