Being slightly smarter with status codes