在Android中以正确的响应改造返回404错误

时间:2018-11-02 07:21:16

标签: android retrofit2

  D/OkHttp: <-- 404 Not Found http://**************.net/auth/login (502ms)
11-02 06:23:45.456 4443-4477/com.application.mobile.aiken.aikenapplication D/OkHttp: Date: Fri, 02 Nov 2018 06:23:45 GMT
11-02 06:23:45.458 4443-4477/com.application.mobile.aiken.aikenapplication D/OkHttp: Server: Apache/2.4.18 (Ubuntu)
11-02 06:23:45.459 4443-4477/com.application.mobile.aiken.aikenapplication D/OkHttp: 0: Content-Type : Application/json
    Cache-Control: no-cache, private
    Content-Length: 411
    Content-Type: application/json
    X-Cache: MISS from squid_Wifi
    X-Cache-Lookup: MISS from squid_Wifi:3128
    Via: 1.1 squid_Wifi (squid/3.5.27)
    Connection: keep-alive
11-02 06:23:45.460 4443-4477/com.application.mobile.aiken.aikenapplication D/OkHttp: {"data":[{"token":"**********************************"}],"msg":"Authentication successfull.","status":"success"}

根据上述改装日志,我没有找到404,然后它向我返回正确的响应。这是什么问题?我该怎么解决?

0 个答案:

没有答案