greptilian logo

IRC log for #rest, 2015-01-14

#rest on freenode has been logged here from May 2014 until end of July 2018 but logging has been suspended because the channel has been riddled with spam since August 2018 with no end in site. See the following blog posts about the problem:

Until the spam problem has been dealt with and logging can resume, please visit our wiki at https://trygvis.io/rest-wiki/

Thanks.

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

All times shown according to UTC.

Time S Nick Message
00:04 locks joined #rest
00:04 whartung_ joined #rest
00:05 shrink0r joined #rest
00:07 rickharrison joined #rest
00:08 lebster joined #rest
00:12 proteusguy joined #rest
00:14 ChrisAnn joined #rest
00:24 happyface joined #rest
00:28 tmoore_ joined #rest
00:29 gluegadget joined #rest
00:32 ramsey joined #rest
00:43 happyface joined #rest
00:52 fumanchu_ joined #rest
01:02 locks joined #rest
01:08 tmoore_ joined #rest
01:12 shrink0r_ joined #rest
01:14 shrink0__ joined #rest
01:14 igitoor joined #rest
01:16 igitoor joined #rest
02:02 locks joined #rest
02:18 tr3onlin_ joined #rest
02:42 proteusguy joined #rest
02:53 SupaHam joined #rest
02:59 locks joined #rest
03:00 bigbluehat joined #rest
03:00 Left_Turn left #rest
03:02 rickharrison joined #rest
03:05 lufi joined #rest
03:07 shrink0r joined #rest
03:08 ChrisAnn joined #rest
03:11 talios joined #rest
03:12 igitoor joined #rest
03:16 igitoor joined #rest
03:22 ramsey joined #rest
03:25 lebster joined #rest
03:26 happyface joined #rest
03:28 tr3online joined #rest
03:30 lemur joined #rest
05:00 ChrisAnn joined #rest
05:13 SupaHam joined #rest
05:14 ChrisAnn joined #rest
05:42 ramsey joined #rest
05:56 ramsey joined #rest
06:55 igitoor joined #rest
07:00 igitoor joined #rest
07:10 gluegadget joined #rest
07:11 ramsey joined #rest
07:20 lemur joined #rest
07:24 tr3online joined #rest
07:39 rosstuck joined #rest
07:48 mezod joined #rest
08:10 ramsey joined #rest
08:19 _ollie joined #rest
08:36 azer_ joined #rest
08:59 ramsey joined #rest
09:20 tr3online joined #rest
09:22 tr3onlin_ joined #rest
09:22 tr3online joined #rest
09:23 qcasper joined #rest
09:23 tr3online joined #rest
09:24 qcasper hey guys, what code should answer the server if it is out of resources?
09:24 trygvis http://httpstatus.es/503 for example
09:24 qcasper well, not quite
09:25 trygvis if the client has consumed all of its resources you can use 429
09:25 qcasper the service is actually available, but all the resources are busy at the moment
09:25 trygvis from the spec: "The server is currently unable to handle the request due to a temporary overloading or maintenance of the server."
09:26 trygvis you can include retry-after if you want to help the client
09:27 qcasper so, 503 is the best choice you think?
09:27 trygvis without knowing more on your specific case, I think so
09:28 qcasper the purpose of service is allocation some resources for users
09:29 qcasper if all of them allocated I should answer something to user
09:29 Jarda I only use 5xx when there's something unexpected happening
09:30 qcasper yep, for me 5xx looks like serious issue on server too
09:30 trygvis qcasper: 429 might be useful http://tools.ietf.org/html/rfc6585#section-4
09:30 Jarda "Response status codes beginning with the digit "5" indicate cases in which the server is aware that it has erred or is incapable of performing the request."
09:31 trygvis yes, it means that it was not the client's fault
09:31 Jarda yeah
09:31 trygvis so unless some 4xx response is ok, it has to be 5xx something
09:31 Jarda maybe in this case 503 could be ok
09:31 qcasper yep in my case it is more with server rather than client
09:31 trygvis 5xx doesn't necessarily mean that it was serious or that someone died. just that the server wasn't able to process your (possibly valid) request
09:32 Jarda but also just 400 Bad Request might do it
09:32 Jarda and a body explaining why the request was bad
09:32 trygvis yeah, I think 502 or 429 would be good. I might go with 429, just because my intermediates will give 503 on my behalf
09:33 trygvis yep. you can always include a body with the 5xx responses too. and Retry-After is also useful
09:33 Jarda I kinda misuse 400 Bad request all the time
09:33 Jarda the semantics IIRC are something about malformed syntax in body
09:33 trygvis qcasper: there's always http://tools.ietf.org/html/rfc2616#section-10.4.3 too :)
09:34 Jarda but I use it for validation errors too, like "property name is missing"
09:34 interop_madness joined #rest
09:37 qcasper ok, thank you guys, I think in my case 503 provides better idea what happened
09:37 qcasper with additional description
09:42 trygvis joined #rest
10:02 martinfilliau joined #rest
10:13 qcasper left #rest
10:26 Left_Turn joined #rest
10:38 SupaHam joined #rest
11:19 SupaHam joined #rest
11:30 mezod joined #rest
11:33 martinfi_ joined #rest
11:40 azer_ joined #rest
12:18 shrink0r joined #rest
12:42 azer joined #rest
13:19 kevinswiber joined #rest
13:21 azer joined #rest
13:25 tr3online joined #rest
13:30 kevinswiber joined #rest
13:41 kevinswiber joined #rest
14:20 azer joined #rest
14:27 aGHz joined #rest
14:36 nkoza joined #rest
15:22 tr3online joined #rest
16:02 shrink0r_ joined #rest
16:51 lemur joined #rest
16:57 lemur joined #rest
17:23 tr3online joined #rest
17:42 tr3online joined #rest
18:13 tr3online joined #rest
18:21 shrink0r joined #rest
18:23 shrink0r_ joined #rest
18:40 shrink0r joined #rest
19:00 gasbakid joined #rest
19:02 tr3online joined #rest
19:04 tr3online joined #rest
19:05 tr3online joined #rest
19:34 kevinswiber joined #rest
19:40 shrink0r_ joined #rest
19:43 kevinswiber joined #rest
19:53 shrink0r joined #rest
20:26 kevinswiber joined #rest
20:34 gasbakid joined #rest
20:43 gasbakid joined #rest
20:51 rue joined #rest
21:48 _ollie joined #rest
22:48 kevinswiber joined #rest
22:54 gamache joined #rest
23:08 DrCode joined #rest
23:29 lebster if i have a user settings page that edits the users information and the departments information (if they are a manager). do i make two calls for two resources (users,departments) or do i make another resource called usersettings?
23:39 lebster and if i put to two resources and the second errors out, how would i reverse the transaction if i needed to
23:39 lebster of the first that succeded
23:39 lebster hmm
23:42 mezod joined #rest

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

#rest on freenode has been logged here from May 2014 until end of July 2018 but logging has been suspended because the channel has been riddled with spam since August 2018 with no end in site. See the following blog posts about the problem:

Until the spam problem has been dealt with and logging can resume, please visit our wiki at https://trygvis.io/rest-wiki/

Thanks.