Returns error 400 for queries with invalid columns or invalid cartocss rules/filters

When creating layergroups with invalid columns or with cartodb using invalid filters we are returning 404 errors although semantically it is a bad request from the client so we have to return a 400 error.