Adding methods to set http status.