tus / tus-resumable-upload-protocol

Open Protocol for Resumable File Uploads
https://tus.io
MIT License
1.48k stars 103 forks source link

Which StatusCode of response must server return, if server want to indicate a success HEAD request #192

Closed bluetianx closed 10 months ago

bluetianx commented 11 months ago

Which StatusCode of response must server return, if server want to indicate a success HEAD request ? Server must return 200 statusCode ?

TusVersion : 1.0.0

Acconut commented 11 months ago

That depends on the request type. PATCH requests must get a 204, POST a 201, and for HEAD no specific response is required, but a 200 or 204 is usually the best.

bluetianx commented 11 months ago

OK, Thank you for your reply,

That depends on the request type

Sorry, I forgot to express which Request Type, I want to ask about HEAD request Type.

for HEAD no specific response is required, but a 200 or 204 is usually the best.

OK, I understand, but I think Tus should indicate a success statusCode

Acconut commented 11 months ago

I agree. We should add a recommendation to respond with 200 or 204.

bluetianx commented 11 months ago

We should add a recommendation to respond with 200 or 204.

Can I update the Protocol file with PR ?

Acconut commented 10 months ago

Thank you for the offer, but I also added a brief text in ab284dc093b5a2d88f5de3618891309bbf5e1b6c and 61083ff6c3bad78ca51aa9e4e8e054b91563be63.