From 28e631108afa2a5cc9b5d912ef92a88dea8f80d8 Mon Sep 17 00:00:00 2001 From: LogMANOriginal Date: Sat, 15 Sep 2018 20:53:26 +0200 Subject: [PATCH] Created The returnServerError function (markdown) --- The-returnServerError-function.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 The-returnServerError-function.md diff --git a/The-returnServerError-function.md b/The-returnServerError-function.md new file mode 100644 index 0000000..dcb3f62 --- /dev/null +++ b/The-returnServerError-function.md @@ -0,0 +1,7 @@ +The `returnServerError` function aborts execution of the current bridge and returns the given error message with error code **500**: + +```PHP +returnServerError('Your error message') +``` + +Use this function when a problem occurs that has nothing to do with the parameters provided by the user. (like: Host service gone missing, empty data received, etc...) \ No newline at end of file