adds some status codes and headers to http responses