400 is a more suitable error code in this situation