Added server response status codes.
Fixes #285.