API error reporting