Skip to content

Commit cc66023

Browse files
committed
Throw user-friendly exception with the proper HTTP statuscode (#2234)
* Throw user-friendly exception with the proper HTTP statuscode for 'method not found' * Suppress traceback for MethodNotAllowed error, unless debug-logging is set * Be able to suppress error reporting for specific types of errors
1 parent 4a25f84 commit cc66023

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

modules/core/locales/sr/LC_MESSAGES/core.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,12 @@ msgstr "Ako se ova greška bude i dalje pojavljivala, možete je prijaviti admin
4747
msgid "If you are a developer who is deploying a single sign-on solution, you have a problem with the metadata configuration. Verify that metadata is configured correctly on both the identity provider and service provider."
4848
msgstr "Postoji greška sa podešavanjima metapodataka. Ukoliko ste administrator sistema, proverite da li metapodaci ispravno uneseni na strani davaoca servisa i davaoca identiteta."
4949

50+
<<<<<<< HEAD
5051
msgid "If you are a developer who is deploying a single sign-on solution, you have are trying to reach an endpoint using the wrong HTTP-method."
5152
msgstr ""
5253

54+
=======
55+
>>>>>>> cf072f737 (Throw user-friendly exception with the proper HTTP statuscode (#2234))
5356
msgid "If you are a user who received this error after following a link on a site, you should report this error to the owner of that site."
5457
msgstr "Ukoliko se ova greška pojavila nakon što ste sledili link na nekoj web stranici, onda biste grešku trebali prijaviti vlasniku navedene stranice."
5558

src/SimpleSAML/Error/ErrorCodes.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class ErrorCodes
3333
final public const MEMCACHEDOWN = 'MEMCACHEDOWN';
3434
final public const METADATA = 'METADATA';
3535
final public const METADATANOTFOUND = 'METADATANOTFOUND';
36+
final public const METHODNOTALLOWED = 'METHODNOTALLOWED';
3637
final public const NOACCESS = 'NOACCESS';
3738
final public const NOCERT = 'NOCERT';
3839
final public const NORELAYSTATE = 'NORELAYSTATE';

0 commit comments

Comments
 (0)