REST API should return HTTP 400 when adding files to wrong type of run
When adding a single end file to a paired end run (or vice versa) IRIDA returns an HTTP 500 error (server error). This would make more sense to return a HTTP 400 error (Bad Request). This is due to throwing an
ca.corefacility.bioinformatics.irida.service.impl.SequencingObjectServiceImpl#create. This could be caught in the REST controller and return the appropriate response.
Reported by @jeffrey.thiessen