Replaces response codes with http constants