xref: /plugin/davcal/vendor/sabre/http/lib/HttpException.php (revision 185e2535914616e98630b0777145a3e6d5c8d81b)
1<?php
2
3namespace Sabre\HTTP;
4
5/**
6 * An exception representing a HTTP error.
7 *
8 * This can be used as a generic exception in your application, if you'd like
9 * to map HTTP errors to exceptions.
10 *
11 * If you'd like to use this, create a new exception class, extending Exception
12 * and implementing this interface.
13 *
14 * @copyright Copyright (C) 2009-2015 fruux GmbH (https://fruux.com/).
15 * @author Evert Pot (http://evertpot.com/)
16 * @license http://sabre.io/license/ Modified BSD License
17 */
18interface HttpException {
19
20    /**
21     * The http status code for the error.
22     *
23     * This may either be just the number, or a number and a human-readable
24     * message, separated by a space.
25     *
26     * @return string|null
27     */
28    function getHttpStatus();
29
30}
31