greptilian logo

IRC log for #rest, 2016-06-21

https://trygvis.io/rest-wiki/

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
01:53 fuzzyhorns joined #rest
05:47 ShekharReddy joined #rest
07:25 graste joined #rest
08:01 interop_madness joined #rest
08:06 Coldblackice joined #rest
08:22 Macaveli joined #rest
08:43 bluezone joined #rest
09:10 wsieroci joined #rest
09:19 DylanJ joined #rest
09:20 DylanJ what http status code should i use when the client sends a request that i refuse to fulfill. the client is sending a post to publish some messages. but there is a quota on how many messages the client can send in a given month. the client knows the quota but doesn't respect it. Does a 412 precondition make sense?
09:46 trygvis yeah, I guess. an alternative is to return 200 ok and model failure/status as a part of the response there
10:13 tbsf joined #rest
11:12 Devastator joined #rest
11:13 Devastator joined #rest
11:28 Macaveli joined #rest
12:35 tbsf joined #rest
13:10 Macaveli joined #rest
13:29 ShekharReddy joined #rest
14:26 fuzzyhorns joined #rest
14:55 Macaveli joined #rest
15:24 tbsf joined #rest
15:29 wsieroci joined #rest
15:33 wsieroci_ joined #rest
15:38 fuzzyhorns joined #rest
15:56 wsiqueir joined #rest
15:58 fuzzyhorns joined #rest
16:40 Coldblackice joined #rest
17:21 Macaveli joined #rest
17:43 spaceone DylanJ: (trygvis) 412 is for preconditions via if-*- headers. 200 should not be used on an error. I would use 429 too many request (https://tools.ietf.org/html/rfc6585#section-4), otherwise i would use 400 bad request, 403 forbidden, 409 conflict or 423 locked.
18:14 ShekharReddy joined #rest
18:37 Macaveli joined #rest
18:39 trygvis sorry, I was reading up on 422
18:41 trygvis 403, 409 and 423 are all as bad as 412. 403 is in common use, 400 is bad syntax, 409 is for race-conditions etc, 423 is DAV stuff
18:41 trygvis I think 400 is rather commonly used as a catch all "you fucked up"
18:41 whartung yea
18:42 whartung "Whatever is wrong, it's your fault. kthx"
18:42 asdf wasn't there a status specifically for quota exceeded
18:43 trygvis yeah. I could see a valid argument for using 200 too and assert that the user has to check the response in any case
18:43 asdf (oh, 429)
19:32 DylanJ I ended up using 402
19:32 DylanJ since you /can/ pay for a larger limit.
19:32 DylanJ but i'd never seen it before
19:40 Macaveli joined #rest
19:44 asm89 joined #rest
21:16 Macaveli joined #rest
21:59 fuzzyhorns joined #rest
23:02 tbsf joined #rest
23:50 ModusPwnens joined #rest
23:51 ModusPwnens Is there a way of doing file uploads over HTTP without using multipart/form-data?
23:57 whartung sure, you can just shove a large blob of data up to the service.
23:57 whartung multipart is basially to support the FILE type on forms

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

https://trygvis.io/rest-wiki/