This fixes a behavior change introduced in #194. There are response builder helpers that don't take a body, and should be used for an empty response body. A null body probably indicates a programming error.
Clean up a exception construction slightly, and add back in preconditions checks which were removed. This forces the user to provide an error message, which is what we want (information-free errors are not great).
This fixes a behavior change introduced in #194. There are response builder helpers that don't take a body, and should be used for an empty response body. A null body probably indicates a programming error.
Clean up a exception construction slightly, and add back in preconditions checks which were removed. This forces the user to provide an error message, which is what we want (information-free errors are not great).