Raise on bad status codes