1<?php
2
3namespace Sabre\DAV\Exception;
4
5use Sabre\DAV;
6
7/**
8 * Payment Required
9 *
10 * The PaymentRequired exception may be thrown in a case where a user must pay
11 * to access a certain resource or operation.
12 *
13 * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
14 * @author Evert Pot (http://evertpot.com/)
15 * @license http://sabre.io/license/ Modified BSD License
16 */
17class PaymentRequired extends DAV\Exception {
18
19    /**
20     * Returns the HTTP statuscode for this exception
21     *
22     * @return int
23     */
24    function getHTTPCode() {
25
26        return 402;
27
28    }
29
30}
31