support integer status codes in sendResponse