Fix API not throwing 400