Add error constants for the http api