REST API error conditions