1*a1a3b679SAndreas Boehler<?php 2*a1a3b679SAndreas Boehler 3*a1a3b679SAndreas Boehlernamespace Sabre\DAV\Exception; 4*a1a3b679SAndreas Boehler 5*a1a3b679SAndreas Boehleruse Sabre\DAV; 6*a1a3b679SAndreas Boehler 7*a1a3b679SAndreas Boehler/** 8*a1a3b679SAndreas Boehler * BadRequest 9*a1a3b679SAndreas Boehler * 10*a1a3b679SAndreas Boehler * The BadRequest is thrown when the user submitted an invalid HTTP request 11*a1a3b679SAndreas Boehler * BadRequest 12*a1a3b679SAndreas Boehler * 13*a1a3b679SAndreas Boehler * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/). 14*a1a3b679SAndreas Boehler * @author Evert Pot (http://evertpot.com/) 15*a1a3b679SAndreas Boehler * @license http://sabre.io/license/ Modified BSD License 16*a1a3b679SAndreas Boehler */ 17*a1a3b679SAndreas Boehlerclass BadRequest extends DAV\Exception { 18*a1a3b679SAndreas Boehler 19*a1a3b679SAndreas Boehler /** 20*a1a3b679SAndreas Boehler * Returns the HTTP statuscode for this exception 21*a1a3b679SAndreas Boehler * 22*a1a3b679SAndreas Boehler * @return int 23*a1a3b679SAndreas Boehler */ 24*a1a3b679SAndreas Boehler function getHTTPCode() { 25*a1a3b679SAndreas Boehler 26*a1a3b679SAndreas Boehler return 400; 27*a1a3b679SAndreas Boehler 28*a1a3b679SAndreas Boehler } 29*a1a3b679SAndreas Boehler 30*a1a3b679SAndreas Boehler} 31