* Report errors to admin by e-mail * Return details of error in JSON for API calls * Show error details page for non-API calls