deps and better REST HTTP error code handling