Files
doc-exports/docs/asm/api-ref/asm_api_0018.html
qiujiandong1 0a1983aa72 ASM API initial version 20240430
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com>
Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com>
Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
2025-03-10 11:27:25 +00:00

113 lines
8.2 KiB
HTML

<a name="asm_api_0018"></a><a name="asm_api_0018"></a>
<h1 class="topictitle1">Error Codes</h1>
<div id="body1512971812931"><p id="asm_api_0018__p8060118">If an API fails to be called, no service data will be returned. You can identify the cause based on the error code of each API. If an error occurs in API calling, HTTP status code 4<em id="asm_api_0018__i96561422193217">xx</em> or 5<em id="asm_api_0018__i11657182273219">xx</em> will be returned. The response body contains the specific error code and information. </p>
<div class="section" id="asm_api_0018__section2487536165315"><h4 class="sectiontitle">Error Response Body Format</h4><p id="asm_api_0018__p127537375412">If an error occurs during API calling, an error code and a message will be displayed. The following shows an error response body.</p>
<pre class="screen" id="asm_api_0018__screen1390551320300">{
"errorMsg": Modify the request body based on the returned message and the ASM API documentation, or contact technical support.
"errorCode": "ASM.01400001"
}</pre>
<p id="asm_api_0018__p1589911464018">In the preceding information, <strong id="asm_api_0018__b957733020350">error_code</strong> indicates an error code, and <strong id="asm_api_0018__b11577630163519">error_msg</strong> describes the error.</p>
</div>
<div class="section" id="asm_api_0018__section13313911540"><h4 class="sectiontitle">Error Code Description</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="asm_api_0018__table5631240514017" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Error codes</caption><thead align="left"><tr id="asm_api_0018__row167355214017"><th align="left" class="cellrowborder" valign="top" width="10.43%" id="mcps1.3.3.2.2.6.1.1"><p id="asm_api_0018__p48499735183323">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.72%" id="mcps1.3.3.2.2.6.1.2"><p id="asm_api_0018__p1205999414017">Error Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="23.3%" id="mcps1.3.3.2.2.6.1.3"><p id="asm_api_0018__p3733542714017">Error Message</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="23.97%" id="mcps1.3.3.2.2.6.1.4"><p id="asm_api_0018__p114461518962">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="24.58%" id="mcps1.3.3.2.2.6.1.5"><p id="asm_api_0018__p427070814017">Troubleshooting</p>
</th>
</tr>
</thead>
<tbody><tr id="asm_api_0018__row1937643811"><td class="cellrowborder" valign="top" width="10.43%" headers="mcps1.3.3.2.2.6.1.1 "><p id="asm_api_0018__p2889612389">400</p>
</td>
<td class="cellrowborder" valign="top" width="17.72%" headers="mcps1.3.3.2.2.6.1.2 "><p id="asm_api_0018__p188116103815">ASM.01400001</p>
</td>
<td class="cellrowborder" valign="top" width="23.3%" headers="mcps1.3.3.2.2.6.1.3 "><p id="asm_api_0018__p88810612381">Invalid request.</p>
</td>
<td class="cellrowborder" valign="top" width="23.97%" headers="mcps1.3.3.2.2.6.1.4 "><p id="asm_api_0018__p68814616389">The request body is invalid.</p>
</td>
<td class="cellrowborder" valign="top" width="24.58%" headers="mcps1.3.3.2.2.6.1.5 "><p id="asm_api_0018__p188466383">Modify the request body based on the returned message and the ASM API documentation, or contact technical support.</p>
</td>
</tr>
<tr id="asm_api_0018__row5935616388"><td class="cellrowborder" valign="top" width="10.43%" headers="mcps1.3.3.2.2.6.1.1 "><p id="asm_api_0018__p5881264384">401</p>
</td>
<td class="cellrowborder" valign="top" width="17.72%" headers="mcps1.3.3.2.2.6.1.2 "><p id="asm_api_0018__p1988166163815">ASM.01401001</p>
</td>
<td class="cellrowborder" valign="top" width="23.3%" headers="mcps1.3.3.2.2.6.1.3 "><p id="asm_api_0018__p1288106153817">Authorization failed.</p>
</td>
<td class="cellrowborder" valign="top" width="23.97%" headers="mcps1.3.3.2.2.6.1.4 "><p id="asm_api_0018__p15880616382">The authentication failed.</p>
</td>
<td class="cellrowborder" valign="top" width="24.58%" headers="mcps1.3.3.2.2.6.1.5 "><p id="asm_api_0018__p12886693819">See the returned message or contact technical support.</p>
</td>
</tr>
<tr id="asm_api_0018__row293176133818"><td class="cellrowborder" valign="top" width="10.43%" headers="mcps1.3.3.2.2.6.1.1 "><p id="asm_api_0018__p128810613817">403</p>
</td>
<td class="cellrowborder" valign="top" width="17.72%" headers="mcps1.3.3.2.2.6.1.2 "><p id="asm_api_0018__p1188663389">ASM.01403001</p>
</td>
<td class="cellrowborder" valign="top" width="23.3%" headers="mcps1.3.3.2.2.6.1.3 "><p id="asm_api_0018__p178806193816">Forbidden.</p>
</td>
<td class="cellrowborder" valign="top" width="23.97%" headers="mcps1.3.3.2.2.6.1.4 "><p id="asm_api_0018__p688186183811">The access is denied.</p>
</td>
<td class="cellrowborder" valign="top" width="24.58%" headers="mcps1.3.3.2.2.6.1.5 "><p id="asm_api_0018__p788146123810">See the returned message or contact technical support.</p>
</td>
</tr>
<tr id="asm_api_0018__row1393186123814"><td class="cellrowborder" valign="top" width="10.43%" headers="mcps1.3.3.2.2.6.1.1 "><p id="asm_api_0018__p48818653817">404</p>
</td>
<td class="cellrowborder" valign="top" width="17.72%" headers="mcps1.3.3.2.2.6.1.2 "><p id="asm_api_0018__p48886133820">ASM.01404001</p>
</td>
<td class="cellrowborder" valign="top" width="23.3%" headers="mcps1.3.3.2.2.6.1.3 "><p id="asm_api_0018__p178819611381">Resource not found.</p>
</td>
<td class="cellrowborder" valign="top" width="23.97%" headers="mcps1.3.3.2.2.6.1.4 "><p id="asm_api_0018__p158836173811">The resource is not found.</p>
</td>
<td class="cellrowborder" valign="top" width="24.58%" headers="mcps1.3.3.2.2.6.1.5 "><p id="asm_api_0018__p3881366388">Check whether the resource to be accessed has been deleted.</p>
</td>
</tr>
<tr id="asm_api_0018__row99320617382"><td class="cellrowborder" valign="top" width="10.43%" headers="mcps1.3.3.2.2.6.1.1 "><p id="asm_api_0018__p18889613811">409</p>
</td>
<td class="cellrowborder" valign="top" width="17.72%" headers="mcps1.3.3.2.2.6.1.2 "><p id="asm_api_0018__p3881610380">ASM.01409001</p>
</td>
<td class="cellrowborder" valign="top" width="23.3%" headers="mcps1.3.3.2.2.6.1.3 "><p id="asm_api_0018__p988564382">The resource already exists.</p>
</td>
<td class="cellrowborder" valign="top" width="23.97%" headers="mcps1.3.3.2.2.6.1.4 "><p id="asm_api_0018__p88806193812">The resource already exists.</p>
</td>
<td class="cellrowborder" valign="top" width="24.58%" headers="mcps1.3.3.2.2.6.1.5 "><p id="asm_api_0018__p1188863388">Delete the resource and try again.</p>
</td>
</tr>
<tr id="asm_api_0018__row492667388"><td class="cellrowborder" valign="top" width="10.43%" headers="mcps1.3.3.2.2.6.1.1 "><p id="asm_api_0018__p18887616388">429</p>
</td>
<td class="cellrowborder" valign="top" width="17.72%" headers="mcps1.3.3.2.2.6.1.2 "><p id="asm_api_0018__p168818613820">ASM.01429001</p>
</td>
<td class="cellrowborder" valign="top" width="23.3%" headers="mcps1.3.3.2.2.6.1.3 "><p id="asm_api_0018__p5883653815">Resource locked by other requests.</p>
</td>
<td class="cellrowborder" valign="top" width="23.97%" headers="mcps1.3.3.2.2.6.1.4 "><p id="asm_api_0018__p188146173816">The resource is locked by another request.</p>
</td>
<td class="cellrowborder" valign="top" width="24.58%" headers="mcps1.3.3.2.2.6.1.5 "><p id="asm_api_0018__p5891268381">See the returned message or contact technical support.</p>
</td>
</tr>
<tr id="asm_api_0018__row0925653814"><td class="cellrowborder" valign="top" width="10.43%" headers="mcps1.3.3.2.2.6.1.1 "><p id="asm_api_0018__p1189569381">500</p>
</td>
<td class="cellrowborder" valign="top" width="17.72%" headers="mcps1.3.3.2.2.6.1.2 "><p id="asm_api_0018__p9891661382">ASM.01500001</p>
</td>
<td class="cellrowborder" valign="top" width="23.3%" headers="mcps1.3.3.2.2.6.1.3 "><p id="asm_api_0018__p17895610386">Internal error.</p>
</td>
<td class="cellrowborder" valign="top" width="23.97%" headers="mcps1.3.3.2.2.6.1.4 "><p id="asm_api_0018__p3899612383">An internal error occurred.</p>
</td>
<td class="cellrowborder" valign="top" width="24.58%" headers="mcps1.3.3.2.2.6.1.5 "><p id="asm_api_0018__p1989186173815">See the returned message or contact technical support.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="asm_api_0016.html">Appendix</a></div>
</div>
</div>