replaced API error placeholders with actual http errors