User Tools

Site Tools


delta-api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

delta-api [2025/03/04 09:57] – created Administratordelta-api [2025/03/05 08:01] (current) – [Overview] Administrator
Line 111: Line 111:
 - **Inventory**: Status updates with specified types (e.g., "AS", "SE"). - **Inventory**: Status updates with specified types (e.g., "AS", "SE").
  
-## Error Handling+===== Error Handling =====
  
-If an error occurs, the API will return an error message in XML format: 
  
-```xml +If an error occurs, the API will return an error message in below formats:
-<Error> +
-    <Code>401</Code> +
-    <Message>Unauthorized Access</Message> +
-</Error> +
-```+
  
-### Common Error Codes+**XML format:** 
 + 
 +  <ErrorResponse> 
 +    <Code>DCA101</Code> 
 +    <Message>Unauthorized Access: Invalid login credentials</Message> 
 +    <Timestamp>2025-02-19T12:34:56Z</Timestamp> 
 +  </ErrorResponse> 
 + 
 +**JSON format:** 
 + 
 +  { 
 +    "ErrorResponse":
 +      "Code": "DCA101", 
 +      "Message": "Unauthorized Access: Invalid login credentials", 
 +      "Timestamp": "2025-02-19T12:34:56Z" 
 +    } 
 +  } 
 +   
 +===== Common Error Codes ===== 
 + 
 +| Code    | Description                                       | 
 +| DCA101  | Unauthorized Access: Invalid login credentials.   | 
 +| DCA111  | Validation Error: One or more fields failed validation checks.| 
 +| DCA106  | Bad Request: The request is malformed or missing required parameters.| 
 +| DCA104  | Data Type Mismatch: Invalid data type detected in the request.|
  
-| Code | Description                              | 
-| ---- | ---------------------------------------- | 
-| 400  | Bad Request - Invalid input parameters   | 
-| 401  | Unauthorized - Invalid credentials       | 
-| 403  | Forbidden - Access denied                | 
-| 500  | Internal Server Error - Unexpected error | 
  
 ## Notes ## Notes
delta-api.1741100220.txt.gz · Last modified: 2025/03/04 09:57 by Administrator