Fix some errors (use of HttpNoContent instead of HTTPNoContent), test cases, and ide code style nitpicks