Adds status codes as error types