Quite strange looking. Looks most like a Common Redshank to me but with very yellow legs. Young birds tend to have orangey legs but this doesn't look like a juvenile. The shape and plumage look wrong for either of the Yellowlegs. It would help to know where the picture was taken.
This looks to be a Redshank to me also. Both yellowlegs, apart from being rare enough even in western Europe, would have a far longer primary projection beyond the tertials, Spotted Redshank would be paler above, longer-billed and have pale on the bill limited to the base of the lower mandible.