Added HTTP code 204 tp the response codes.
Added support to set the accept header to application/json