質問するログイン新規登録

質問編集履歴

1

API 500エラーのresponse内容を追記しました。

2021/01/03 06:50

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -258,4 +258,31 @@
258
258
  ];
259
259
  }
260
260
  }
261
+ ```
262
+
263
+ # エラーコード
264
+ ```
265
+ ■ response.data
266
+ {message: "サーバーエラー", errors: Array(0)}
267
+ errors: []
268
+ message: "サーバーエラー"
269
+ __proto__: Object
270
+
271
+ ■ response.status
272
+ 500
273
+
274
+ ■ response.statusText
275
+ Internet Server Error
276
+
277
+ ■ response.headers
278
+ {cache-control: "no-cache, private", connection: "close", content-type: "application/json", date: "Sun, 03 Jan 2021 04:24:04 GMT, Sun, 03 Jan 2021 04:24:04 GMT", host: "127.0.0.1:8000", …}
279
+ cache-control: "no-cache, private"
280
+ connection: "close"
281
+ content-type: "application/json"
282
+ date: "Sun, 03 Jan 2021 04:24:04 GMT, Sun, 03 Jan 2021 04:24:04 GMT"
283
+ host: "127.0.0.1:8000"
284
+ x-powered-by: "PHP/7.4.9"
285
+ x-ratelimit-limit: "60"
286
+ x-ratelimit-remaining: "50"
287
+ __proto__: Object
261
288
  ```