Use proper HTTP status codes, as suggested by @grk.