Response to web API requests: 400: Bad request
parse_error
Bu yanıt, isteğinizin geçerli bir JSON olmadığı veya bazı alanların eksik olduğu anlamına gelir. JSON’u düzeltin ve eksik parametreyi ekleyin.
Gövde
| Parametre | Tür | Açıklama |
|---|---|---|
| errors | Object |
|
| error_code | String | Kısa hata adı. Burada: parse_error. |
| status_code | Integer | HTTP durum kodu. Her zaman 400. |
Yanıt örneği
{
"errors": [
{
"source": null,
"errors": [
"JSON parse error - Expecting ',' delimiter: line 4 column 3 (char 67)"
]
}
],
"error_code": "parse_error",
"status_code": 400
}
datetime
İsteğin başarısız olmasının nedeni visited_at alanının format hatası. ISO 8601 tarih formatını kullanın, örneğin: 2025-01-14T14:15:22Z.
Body
| Parametre | Tür | Açıklama |
|---|---|---|
| errors | Object |
|
| error_code | String | Kısa hata adı. Burada: base_error. |
| status_code | Integer | HTTP durum kodu. Her zaman 400. |
Yanıt örneği
{
"errors": [
{
"source": "visited_at",
"errors": [
"invalid datetime format"
]
}
],
"error_code": "datetime",
"status_code": 400
}
enum
İstek, status alanının değeri geçersiz olduğu için başarısız oldu. Lütfen yazım hatası olup olmadığını kontrol edin. Geçerli değerler: organic, non_organic ve unknown.
Gövde
| Parametre | Tür | Açıklama |
|---|---|---|
| errors | Object |
|
| error_code | String | Kısa hata adı. Burada: enum. |
| status_code | Integer | HTTP durumu. Her zaman 400. |
Yanıt örneği
{
"errors": [
{
"source": "status",
"errors": [
"value is not a valid enumeration member; permitted: 'organic', 'non_organic', 'unknown'"
]
}
],
"error_code": "enum",
"status_code": 400
}