mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-07 00:56:34 +02:00
Created The returnError function (markdown)
9
The-returnError-function.md
Normal file
9
The-returnError-function.md
Normal file
@@ -0,0 +1,9 @@
|
||||
**Notice:** Whenever possible make use of [`returnClientError`](#the-returnclienterror-function) or [`returnServerError`](#the-returnservererror-function)
|
||||
|
||||
The `returnError` function aborts execution of the current bridge and returns the given error message with the provided error number:
|
||||
|
||||
```PHP
|
||||
returnError('Your error message', 404);
|
||||
```
|
||||
|
||||
Check the [list of error codes](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) for applicable error numbers.
|
Reference in New Issue
Block a user