Conflict response can also have a payload to help the client understand the source of the conflict.

This commit is contained in:
2017-02-13 17:36:10 +01:00
parent d6f3e500b8
commit fbdf034b9b

View File

@@ -53,8 +53,6 @@ feature -- Contract support
Result := True
when {HTTP_STATUS_CODE}.not_modified then
Result := True
when {HTTP_STATUS_CODE}.conflict then
Result := True
else
-- default to False
end
@@ -68,5 +66,15 @@ feature -- Contract support
Result := res.transfered_content_length = 0 -- Is that the right measure?
end
note
copyright: "2011-2017, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Colin Adams, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software
5949 Hollister Ave., Goleta, CA 93117 USA
Telephone 805-685-1006, Fax 805-685-6869
Website http://www.eiffel.com
Customer support http://support.eiffel.com
]"
end