In looking to build a RESTful API, an important consideration is how to handle errors. Most errors are displayed to users in HTML, as these are web applications. However, API's need some special care.
Laravel uses Exceptions for error handling. This includes both HTTP error codes and application (run-time) errors.