Permalink
Browse files

Added HEAD verb.

  • Loading branch information...
1 parent ba31a49 commit ade843a317bd1b2b6d7d34cfd51c6da10c802023 Oliver Morgan committed Oct 22, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −0 README.md
  2. +0 −1 TODO.md
View
9 README.md
@@ -320,3 +320,12 @@ It's useful to know how much time credit you have left in your account. This API
`remaining` Is the number of seconds remaining.
`used` Is the number of seconds used (in total).
+
+## Getting Worker Status
+Sometimes you will need to check on the status of a worker. Not to be confused with the state of the javascript environment within the worker this method simply determines whether the worker is terminated or not.
+
+ HEAD /worker/:id
+
+> This call requires authentication. If the request was made unauthorised a `401 Unauthorized` response is given. Alternatively if the authorised user is not the owner of the worker a `403 Forbidden` response is given.
+
+If the worker has been terminated a `404 Not Found` response is given. Otherwise a `200 Success` is returned.
View
1 TODO.md
@@ -1 +0,0 @@
-* HEAD /worker/:id (gets worker status)

0 comments on commit ade843a

Please sign in to comment.