add response write method with status and headers parameters

I could not find anything in the API docs to do this... though I may have missed it.
My use case was sending a 201 with a 'location' header.