To minimize the amount of memory used, allow the handlers to stream data directly to the client instead of returning the full amount of data. I also fixed the error messages to include the selector, just because.