make-app/general/base.iml.json
2026-11-28 15:28:08 +02:00

40 lines
1.5 KiB
JSON

{
"baseUrl": "https://api.mozout.com",
"headers": {
"Authorization": "Bearer {{connection.apiKey}}",
"Accept": "application/json",
"Accept-Language": "en",
"User-Agent": "mozout-make/1.0.0"
},
"response": {
"error": {
"type": "RuntimeError",
"message": "[{{statusCode}}] {{ifempty(body.error.message; 'The API did not accept the request.')}}{{if(body.error.details.reason; ' (' + body.error.details.reason + ')'; '')}}",
"401": {
"type": "InvalidAccessTokenError",
"message": "The API key is not valid, was revoked or has expired. Create a new one in the API Center: https://www.my.mozout.com/api-center.php"
},
"402": {
"type": "InvalidConfigurationError",
"message": "Not enough credit, nothing was charged. {{body.error.message}} {{ifempty(body.error.details.add_funds_url; '')}}"
},
"403": {
"type": "InvalidConfigurationError",
"message": "[403] {{body.error.message}}{{if(body.error.code == 'insufficient_scope'; ' Create a key with this permission in the API Center: https://www.my.mozout.com/api-center.php'; '')}}"
},
"422": {
"type": "DataError",
"message": "[422] {{body.error.message}}{{if(body.error.details.reason; ' (' + body.error.details.reason + ')'; '')}}"
},
"429": {
"type": "RateLimitError",
"message": "Too many requests. Wait {{ifempty(headers['retry-after']; 60)}} seconds and try again."
}
}
},
"log": {
"sanitize": [
"request.headers.authorization"
]
}
}