added status http header and tests