mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-13 07:24:48 +02:00
Created The returnError function (markdown)
parent
7c7c0af9a2
commit
1195983e20
1 changed files with 9 additions and 0 deletions
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.
|
Loading…
Add table
Add a link
Reference in a new issue