Describe the bug
When requesting to create a constraint reference with invalid time bounds (time_end <= time_start), the DSS returns an error 500 with following error:
ERROR: new row for relation "scd_constraints" violates check constraint "scd_constraints_check" (SQLSTATE 23514)
To Reproduce
Call PutConstraintReference endpoint with invalid constraint
Expected behavior
DSS should answer with rejected status code and error message