From cb52a4cdc2daa45a61c728f5ec83603e6c6a71fa Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 3 Feb 2015 00:23:12 +0100 Subject: Rework error handling in upload validator Signed-off-by: Florian Pritz --- application/exceptions/UserInputException.php | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 application/exceptions/UserInputException.php (limited to 'application/exceptions/UserInputException.php') diff --git a/application/exceptions/UserInputException.php b/application/exceptions/UserInputException.php new file mode 100644 index 000000000..150d0204b --- /dev/null +++ b/application/exceptions/UserInputException.php @@ -0,0 +1,10 @@ + Date: Tue, 3 Feb 2015 13:59:59 +0100 Subject: generalize authentication handling Signed-off-by: Florian Pritz --- application/exceptions/UserInputException.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'application/exceptions/UserInputException.php') diff --git a/application/exceptions/UserInputException.php b/application/exceptions/UserInputException.php index 150d0204b..d4c327315 100644 --- a/application/exceptions/UserInputException.php +++ b/application/exceptions/UserInputException.php @@ -7,4 +7,8 @@ namespace exceptions; class UserInputException extends PublicApiException { + public function get_http_error_code() + { + return 400; + } } -- cgit v1.2.3-24-g4f1b