Source: http://damienkatz.net/2006/04/error_code_vs_e.html Error codes or exceptions? Like static vs. dynamic programming languages or how great David Hasselhoff is (most people say great, I say super-great), it tends to turn into a pointless argument (“Hasselhoff is super-great ASSHOLE!”). Very little software really gets error handling right. Even many critical, backend server systems tend to break under heavy … Read moreError codes or Exceptions? Why is Reliable Software so Hard?
Source: https://stackoverflow.com/questions/35722586/header-parameters-accept-and-content-type-in-a-rest-context https://webmasters.stackexchange.com/questions/31212/difference-between-the-accept-and-content-type-http-headers Accept indicates what kind of response from the server the client can accept. Content-typealways is about the content of the current request or response. Content-type, it’s used by the client to define the format of body of the request sent So if your request has no payload, you don’t use a content-type request header. As you … Read moreDifference between Http Header Accept and Content-Type