SWI-Prolog / packages-http

The SWI-Prolog HTTP server and client libraries
23 stars 23 forks source link

Add `gone 410` to list of status replies #145

Closed GavinMendelGleason closed 3 years ago

GavinMendelGleason commented 3 years ago

The TUS protocol for expiration (https://tus.io/protocols/resumable-upload.html#expiration) suggests that 410 Gone is used to represent the removal of expired resources when the expiry is still known.

For this reason I've added a patch which makes it possible to use http_status_reply(gone(URL), Headers, Code)

JanWielemaker commented 3 years ago

Thanks. I took the liberty to change the title of the reply to "410 Resource Gone". That causes the conflict.