|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
## Errors and Exceptions
|
|
|
|
|
### Errors and Exceptions
|
|
|
|
|
|
|
|
|
|
All errors and exceptions are caught by Flight and passed to the `error` method.
|
|
|
|
|
The default behavior is to send a generic HTTP `500 Internal Server Error` response with some error information.
|
|
|
|
@ -12,7 +12,7 @@ By default errors are not logged to the web server. You can enable this by chang
|
|
|
|
|
|
|
|
|
|
Flight::set('flight.log_errors', true);
|
|
|
|
|
|
|
|
|
|
## Not Found
|
|
|
|
|
### Not Found
|
|
|
|
|
|
|
|
|
|
When a URL can't be found, Flight calls the `notFound` method. The default behavior is to
|
|
|
|
|
send an HTTP `404 Not Found` response with a simple message. You can override this behavior for your own needs:
|