Tag Info

Hot answers tagged

4

You want to you 403 Forbidden. From the HTTP specs 403 Forbidden: The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. You shouldn't use 409, it implies that the client might be able to resolve the conflict, which in the case of over booking the client can't do as the ...


3

Every language (even C!) has some kind of runtime. This runtime will usually provide bindings to C or have an API usable from C (or in the case of C: from assembler). Such C bindings can then be used to access libraries written for C. There will usually be a translation layer that converts between different data representations in C and in the target ...


2

That should depend on what it is actually doing. If it is retrieving one or more objects, it makes logical sense to always return an array containing the results, even if it is an array with only one element. This makes it easy to then do a foreach on the returned array, for example. If the format of the request causes it to return completely different ...



Only top voted, non community-wiki answers of a minimum length are eligible