Throws proper HTTP error when SQL parameter injection fails.