API Endpoint for Error Reporting